﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CFF RID: 3327
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PlayerBasicInfo : IMessage<PlayerBasicInfo>, IMessage, IEquatable<PlayerBasicInfo>, IDeepCloneable<PlayerBasicInfo>, IBufferMessage
	{
		// Token: 0x170029E2 RID: 10722
		// (get) Token: 0x060094A2 RID: 38050 RVA: 0x0018AD0B File Offset: 0x00188F0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PlayerBasicInfo> Parser
		{
			get
			{
				return PlayerBasicInfo._parser;
			}
		}

		// Token: 0x170029E3 RID: 10723
		// (get) Token: 0x060094A3 RID: 38051 RVA: 0x0018AD12 File Offset: 0x00188F12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PlayerBasicInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170029E4 RID: 10724
		// (get) Token: 0x060094A4 RID: 38052 RVA: 0x0018AD24 File Offset: 0x00188F24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PlayerBasicInfo.Descriptor;
			}
		}

		// Token: 0x060094A5 RID: 38053 RVA: 0x0018AD2B File Offset: 0x00188F2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerBasicInfo()
		{
		}

		// Token: 0x060094A6 RID: 38054 RVA: 0x0018AD40 File Offset: 0x00188F40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerBasicInfo(PlayerBasicInfo other) : this()
		{
			this.nickname_ = other.nickname_;
			this.level_ = other.level_;
			this.exp_ = other.exp_;
			this.stamina_ = other.stamina_;
			this.mcoin_ = other.mcoin_;
			this.hcoin_ = other.hcoin_;
			this.scoin_ = other.scoin_;
			this.worldLevel_ = other.worldLevel_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060094A7 RID: 38055 RVA: 0x0018ADC4 File Offset: 0x00188FC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerBasicInfo Clone()
		{
			return new PlayerBasicInfo(this);
		}

		// Token: 0x170029E5 RID: 10725
		// (get) Token: 0x060094A8 RID: 38056 RVA: 0x0018ADCC File Offset: 0x00188FCC
		// (set) Token: 0x060094A9 RID: 38057 RVA: 0x0018ADD4 File Offset: 0x00188FD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Nickname
		{
			get
			{
				return this.nickname_;
			}
			set
			{
				this.nickname_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x170029E6 RID: 10726
		// (get) Token: 0x060094AA RID: 38058 RVA: 0x0018ADE7 File Offset: 0x00188FE7
		// (set) Token: 0x060094AB RID: 38059 RVA: 0x0018ADEF File Offset: 0x00188FEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x170029E7 RID: 10727
		// (get) Token: 0x060094AC RID: 38060 RVA: 0x0018ADF8 File Offset: 0x00188FF8
		// (set) Token: 0x060094AD RID: 38061 RVA: 0x0018AE00 File Offset: 0x00189000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Exp
		{
			get
			{
				return this.exp_;
			}
			set
			{
				this.exp_ = value;
			}
		}

		// Token: 0x170029E8 RID: 10728
		// (get) Token: 0x060094AE RID: 38062 RVA: 0x0018AE09 File Offset: 0x00189009
		// (set) Token: 0x060094AF RID: 38063 RVA: 0x0018AE11 File Offset: 0x00189011
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Stamina
		{
			get
			{
				return this.stamina_;
			}
			set
			{
				this.stamina_ = value;
			}
		}

		// Token: 0x170029E9 RID: 10729
		// (get) Token: 0x060094B0 RID: 38064 RVA: 0x0018AE1A File Offset: 0x0018901A
		// (set) Token: 0x060094B1 RID: 38065 RVA: 0x0018AE22 File Offset: 0x00189022
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Mcoin
		{
			get
			{
				return this.mcoin_;
			}
			set
			{
				this.mcoin_ = value;
			}
		}

		// Token: 0x170029EA RID: 10730
		// (get) Token: 0x060094B2 RID: 38066 RVA: 0x0018AE2B File Offset: 0x0018902B
		// (set) Token: 0x060094B3 RID: 38067 RVA: 0x0018AE33 File Offset: 0x00189033
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Hcoin
		{
			get
			{
				return this.hcoin_;
			}
			set
			{
				this.hcoin_ = value;
			}
		}

		// Token: 0x170029EB RID: 10731
		// (get) Token: 0x060094B4 RID: 38068 RVA: 0x0018AE3C File Offset: 0x0018903C
		// (set) Token: 0x060094B5 RID: 38069 RVA: 0x0018AE44 File Offset: 0x00189044
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Scoin
		{
			get
			{
				return this.scoin_;
			}
			set
			{
				this.scoin_ = value;
			}
		}

		// Token: 0x170029EC RID: 10732
		// (get) Token: 0x060094B6 RID: 38070 RVA: 0x0018AE4D File Offset: 0x0018904D
		// (set) Token: 0x060094B7 RID: 38071 RVA: 0x0018AE55 File Offset: 0x00189055
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x060094B8 RID: 38072 RVA: 0x0018AE5E File Offset: 0x0018905E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PlayerBasicInfo);
		}

		// Token: 0x060094B9 RID: 38073 RVA: 0x0018AE6C File Offset: 0x0018906C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PlayerBasicInfo other)
		{
			return other != null && (other == this || (!(this.Nickname != other.Nickname) && this.Level == other.Level && this.Exp == other.Exp && this.Stamina == other.Stamina && this.Mcoin == other.Mcoin && this.Hcoin == other.Hcoin && this.Scoin == other.Scoin && this.WorldLevel == other.WorldLevel && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060094BA RID: 38074 RVA: 0x0018AF1C File Offset: 0x0018911C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Nickname.Length != 0)
			{
				num ^= this.Nickname.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Exp != 0U)
			{
				num ^= this.Exp.GetHashCode();
			}
			if (this.Stamina != 0U)
			{
				num ^= this.Stamina.GetHashCode();
			}
			if (this.Mcoin != 0U)
			{
				num ^= this.Mcoin.GetHashCode();
			}
			if (this.Hcoin != 0U)
			{
				num ^= this.Hcoin.GetHashCode();
			}
			if (this.Scoin != 0U)
			{
				num ^= this.Scoin.GetHashCode();
			}
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060094BB RID: 38075 RVA: 0x0018B00C File Offset: 0x0018920C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060094BC RID: 38076 RVA: 0x0018B014 File Offset: 0x00189214
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060094BD RID: 38077 RVA: 0x0018B020 File Offset: 0x00189220
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Nickname.Length != 0)
			{
				output.WriteRawTag(10);
				output.WriteString(this.Nickname);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Level);
			}
			if (this.Exp != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Exp);
			}
			if (this.Stamina != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Stamina);
			}
			if (this.Mcoin != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Mcoin);
			}
			if (this.Hcoin != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Hcoin);
			}
			if (this.Scoin != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Scoin);
			}
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060094BE RID: 38078 RVA: 0x0018B128 File Offset: 0x00189328
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Nickname.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Nickname);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Exp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Exp);
			}
			if (this.Stamina != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Stamina);
			}
			if (this.Mcoin != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Mcoin);
			}
			if (this.Hcoin != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Hcoin);
			}
			if (this.Scoin != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Scoin);
			}
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060094BF RID: 38079 RVA: 0x0018B214 File Offset: 0x00189414
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PlayerBasicInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Nickname.Length != 0)
			{
				this.Nickname = other.Nickname;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Exp != 0U)
			{
				this.Exp = other.Exp;
			}
			if (other.Stamina != 0U)
			{
				this.Stamina = other.Stamina;
			}
			if (other.Mcoin != 0U)
			{
				this.Mcoin = other.Mcoin;
			}
			if (other.Hcoin != 0U)
			{
				this.Hcoin = other.Hcoin;
			}
			if (other.Scoin != 0U)
			{
				this.Scoin = other.Scoin;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060094C0 RID: 38080 RVA: 0x0018B2E1 File Offset: 0x001894E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060094C1 RID: 38081 RVA: 0x0018B2EC File Offset: 0x001894EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num <= 16U)
					{
						if (num == 10U)
						{
							this.Nickname = input.ReadString();
							continue;
						}
						if (num == 16U)
						{
							this.Level = input.ReadUInt32();
							continue;
						}
					}
					else
					{
						if (num == 24U)
						{
							this.Exp = input.ReadUInt32();
							continue;
						}
						if (num == 32U)
						{
							this.Stamina = input.ReadUInt32();
							continue;
						}
					}
				}
				else if (num <= 48U)
				{
					if (num == 40U)
					{
						this.Mcoin = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.Hcoin = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.Scoin = input.ReadUInt32();
						continue;
					}
					if (num == 64U)
					{
						this.WorldLevel = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040038C9 RID: 14537
		private static readonly MessageParser<PlayerBasicInfo> _parser = new MessageParser<PlayerBasicInfo>(() => new PlayerBasicInfo());

		// Token: 0x040038CA RID: 14538
		private UnknownFieldSet _unknownFields;

		// Token: 0x040038CB RID: 14539
		public const int NicknameFieldNumber = 1;

		// Token: 0x040038CC RID: 14540
		private string nickname_ = "";

		// Token: 0x040038CD RID: 14541
		public const int LevelFieldNumber = 2;

		// Token: 0x040038CE RID: 14542
		private uint level_;

		// Token: 0x040038CF RID: 14543
		public const int ExpFieldNumber = 3;

		// Token: 0x040038D0 RID: 14544
		private uint exp_;

		// Token: 0x040038D1 RID: 14545
		public const int StaminaFieldNumber = 4;

		// Token: 0x040038D2 RID: 14546
		private uint stamina_;

		// Token: 0x040038D3 RID: 14547
		public const int McoinFieldNumber = 5;

		// Token: 0x040038D4 RID: 14548
		private uint mcoin_;

		// Token: 0x040038D5 RID: 14549
		public const int HcoinFieldNumber = 6;

		// Token: 0x040038D6 RID: 14550
		private uint hcoin_;

		// Token: 0x040038D7 RID: 14551
		public const int ScoinFieldNumber = 7;

		// Token: 0x040038D8 RID: 14552
		private uint scoin_;

		// Token: 0x040038D9 RID: 14553
		public const int WorldLevelFieldNumber = 8;

		// Token: 0x040038DA RID: 14554
		private uint worldLevel_;
	}
}
